-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do a hacky workaround directly to the http-server package to fix… #569
Conversation
How does this hack work? Does this matter on non-NT OS's? Could we make tests to ensure this continues to work? |
I think the tests is already covered it. If this patch is not applied, or not working, the tests would fail with many errors.
If this patch is applied, no error reported. By the way, the test system can't work on Node 12 unless I upgrade the |
Do you have an update? This looks to be hacking into |
yes, |
On Linux (or other Unix-like operating systems), This patch forces the This doesn't matter on non-NT OS's. |
Well really this doesn't look too bad, even if super hacky. Still runs for me on Mac, and tests pass. Well tests fail on Node 12 but I think that's a separate problem. I don't have access to a Windows machine to try this out for sure on there, though. |
The problem on Node 12 is related to the |
Oh duh you said that was an issue! When I upgrade to vows 0.8.3, however, vows seems to hang after all the tests pass, before reporting success. Are you getting the same? |
@Xmader could you merge master back into this pr? Tests should pass now! |
no problem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As hacky as this indeed is, I think it makes enough sense and appears to work!
Please ensure that your pull request fulfills these requirements:
master
branchWhat is the purpose of this pull request? (bug fix, enhancement, new feature,...)
Fixes #525
What changes did you make?
do a hacky workaround directly into the
http-server
package(patch to https://github.com/jfhbrook/node-ecstatic/blob/master/lib/ecstatic.js#L20)
My solution is so hacky. If it has some side effects, please help.
(If there is another function called
decodePathname
also, it will be affected.)